home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 January: Mac OS SDK / Dev.CD Jan 00 SDK1.toast / Development Kits / Mac OS / QuickTime / QuickTime 3 Interfaces & Libs / QTDevWin / CIncludes / FileTransferTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-21  |  2.8 KB  |  146 lines  |  [TEXT/dosa]

  1. /*
  2.      File:        FileTransferTools.h
  3.  
  4.      Contains:    CommToolbox File Transfer Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 3.0
  8.  
  9.      Copyright:    © 1988-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __FILETRANSFERTOOLS__
  19. #define __FILETRANSFERTOOLS__
  20.  
  21. #ifndef __CONDITIONALMACROS__
  22. #include <ConditionalMacros.h>
  23. #endif
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27. #ifndef __FILETRANSFERS__
  28. #include <FileTransfers.h>
  29. #endif
  30.  
  31.  
  32.  
  33. #if PRAGMA_ONCE
  34. #pragma once
  35. #endif
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. #if PRAGMA_IMPORT
  42. #pragma import on
  43. #endif
  44.  
  45. #if PRAGMA_STRUCT_ALIGN
  46.     #pragma options align=mac68k
  47. #elif PRAGMA_STRUCT_PACKPUSH
  48.     #pragma pack(push, 2)
  49. #elif PRAGMA_STRUCT_PACK
  50.     #pragma pack(2)
  51. #endif
  52.  
  53.  
  54. enum {
  55.                                                                 /* DEFs */
  56.     fdefType                    = FOUR_CHAR_CODE('fdef'),
  57.     fsetType                    = FOUR_CHAR_CODE('fset'),
  58.     fvalType                    = FOUR_CHAR_CODE('fval'),
  59.     flocType                    = FOUR_CHAR_CODE('floc'),
  60.     fscrType                    = FOUR_CHAR_CODE('fscr'),
  61.     fbndType                    = FOUR_CHAR_CODE('fbnd'),
  62.     fverType                    = FOUR_CHAR_CODE('vers')
  63. };
  64.  
  65.  
  66. enum {
  67.                                                                 /* control */
  68.     ftInitMsg                    = 0,
  69.     ftDisposeMsg                = 1,
  70.     ftSuspendMsg                = 2,
  71.     ftResumeMsg                    = 3,
  72.     ftMenuMsg                    = 4,
  73.     ftEventMsg                    = 5,
  74.     ftActivateMsg                = 6,
  75.     ftDeactivateMsg                = 7,
  76.     ftGetErrorStringMsg            = 8,
  77.     ftAbortMsg                    = 52,
  78.     ftStartMsg                    = 100,
  79.     ftExecMsg                    = 102,
  80.     ftSendMsg                    = 103,
  81.     ftReceiveMsg                = 104
  82. };
  83.  
  84.  
  85. enum {
  86.                                                                 /* setup */
  87.     ftSpreflightMsg                = 0,
  88.     ftSsetupMsg                    = 1,
  89.     ftSitemMsg                    = 2,
  90.     ftSfilterMsg                = 3,
  91.     ftScleanupMsg                = 4
  92. };
  93.  
  94.  
  95. enum {
  96.                                                                 /* validate */
  97.     ftValidateMsg                = 0,
  98.     ftDefaultMsg                = 1
  99. };
  100.  
  101.  
  102. enum {
  103.                                                                 /* scripting */
  104.     ftMgetMsg                    = 0,
  105.     ftMsetMsg                    = 1
  106. };
  107.  
  108.  
  109. enum {
  110.                                                                 /* localization */
  111.     ftL2English                    = 0,
  112.     ftL2Intl                    = 1
  113. };
  114.  
  115.  
  116. struct FTSetupStruct {
  117.     DialogPtr                         theDialog;                    /* the dialog form the application */
  118.     short                             count;                        /* first appended item */
  119.     Ptr                             theConfig;                    /* the config record to setup */
  120.     short                             procID;                        /* procID of the tool */
  121. };
  122. typedef struct FTSetupStruct            FTSetupStruct;
  123.  
  124. typedef FTSetupStruct *                    FTSetupPtr;
  125.  
  126. #if PRAGMA_STRUCT_ALIGN
  127.     #pragma options align=reset
  128. #elif PRAGMA_STRUCT_PACKPUSH
  129.     #pragma pack(pop)
  130. #elif PRAGMA_STRUCT_PACK
  131.     #pragma pack()
  132. #endif
  133.  
  134. #ifdef PRAGMA_IMPORT_OFF
  135. #pragma import off
  136. #elif PRAGMA_IMPORT
  137. #pragma import reset
  138. #endif
  139.  
  140. #ifdef __cplusplus
  141. }
  142. #endif
  143.  
  144. #endif /* __FILETRANSFERTOOLS__ */
  145.  
  146.